package view;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JTabbedPane;


public class RestaurantChooser extends JTabbedPane implements Observer{
	
	private static final long serialVersionUID = 1L;

	public RestaurantChooser(Observable obs){
		setBounds(5,5,595,530);
		setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
		
		obs.addObserver(this); //Link for model and view
		
	}
	
	public void update(Observable obs, Object obj) {		
		setEnabled((Boolean)obj);
	}
}
